{include_core file="m/lib/header.html" title="帮助中心"}
<link rel="stylesheet" href="{$smart.const.STATIC_URL}/css/personal-help.css"/>
<script type="text/javascript">
    ~function () {
        // Gets a high and sets the visual window
        var html = document.getElementsByTagName('html')[0],
            width=html.getBoundingClientRect().width;
            if (width>=750) {
                width=750
            };
        html.style.fontSize = width * 0.05 + "px";
    }();
</script>
<div class="warp help">

    {*16=>新手入门 17=>常见问题*}
    {foreach $category_list as $k=>$v}
        {*16代表新手入门 17代表常见问题 18代表其他问题*}
            {if $v.id == 16 || $v.id == 17}
                <div class="divs">
                    <h2>{$v.title}</h2>
                    <ul class="lists">
                        {foreach $v.help_list as $key => $val}
                            <li><a href="{$val.link}">{$val.title}</a></li>
                        {foreachelse}此分类下暂无内容{/foreach}
                        <!-- <li><a href="javascript:;">我在进货神器能做那些事情？</a></li>
                        <li><a href="javascript:;">新门店如何玩转进货神器？</a></li> -->
                    </ul>
                    <div class="open_btn"></div>
                </div>
            {else}
                {*18代表其他问题*}
                {if $v.id == 18}
                <div class="help_list">
                       <ul>
                            {foreach $v.help_list as $key => $val}
                                <li><span class="help{$relation[$val['id']]}"></span><a href="{$val.link}">{$val.title}</a></li>
                            {foreachelse}此分类下暂无内容{/foreach}
                            <!-- <li><a href="javscript:;">如何完成进货？</a></li>
                            <li><span class="help2"></span><a href="javscript:;">如何撤销/修改订单？</a></li>
                            <li><span class="help3"></span><a href="javascript:;">如何让别人代为货？</a></li>
                            <li><span class="help4"></span><a href="javascript::">如何抵用进货？</a></li>
                            <li><span class="help5"></span><a href="javascript::">如何增加积分？</a></li>
                            <li><span class="help6"></span><a href="javascript::">如何管理连锁店？</a></li> -->
                        </ul>
                </div>
                {/if}
            {/if}
    {foreachelse}
    <div class="warp_inner">暂无数据</div>
    {/foreach}
        
<!--
    <div class="divs">
        <h2>新手入门</h2>
        <ul>
            <li><a href="javascript:;">我在进货神器能做那些事情？</a></li>
            <li><a href="javascript:;">新门店如何玩转进货神器？</a></li>
        </ul>
        <div class="open_btn"></div>
    </div>
    <div class="divs">
        <h2>常见问题</h2>
        <ul>
            <li><a href="javascript:;">核销后经销商如何为您进行货品补偿？</a></li>
            <li><a href="javascript:;">如何查询我的进货历史？</a></li>
        </ul>
        <div class="open_btn"></div>
    </div>
    <div class="help_list">
           <ul>
                <li><span class="help1"></span><a href="javscript:;">如何完成进货？</a></li>
                <li><span class="help2"></span><a href="javscript:;">如何撤销/修改订单？</a></li>
                <li><span class="help3"></span><a href="javascript:;">如何让别人代为货？</a></li>
                <li><span class="help4"></span><a href="javascript::">如何抵用进货？</a></li>
                <li><span class="help5"></span><a href="javascript::">如何增加积分？</a></li>
                <li><span class="help6"></span><a href="javascript::">如何管理连锁店？</a></li>
            </ul>
    </div>
-->
</div>
<script type="text/javascript" src="{$smart.const.STATIC_URL}/js/jquery-1.11.1.min.js"></script>
<script type="text/javascript">


$(function(){
    var btn=$(".open_btn"),
        list=$(".lists");
        btn.each(function(i){
            $(this).click(function(){
                var _this=$(this);
                if(!_this.hasClass("btn_top")){
                    _this.addClass("btn_top");
                    $(list[i]).css("height","auto");
                }else{
                    _this.removeClass("btn_top");
                    $(list[i]).css("height","3.253rem");
                }
            })
         })
});
</script>
{include_core file="m/lib/footer.html" }
